﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PPbyPID_DT.aspx.cs" Inherits="StatisticData_PercentPoint_PPbyPID_DT" Title="无标题页" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" src="../../js/my97datepicker/WdatePicker.js"></script>
    
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<div>
    <div>
    <br />
    </div>
    <div>
    <table style=" vertical-align: top; width: 80%; height: 73px;">
        <tr>
            <td style=" vertical-align: text-top; height: 30px; ">
                客户名称：</td>
            <td style=" height: 30px;">
            
            
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                    Height="22px" onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
                    >
                </asp:DropDownList>
            </td>
                
            <td style=" vertical-align: text-top; height: 30px; text-align:center;">
               产品类型：</td>
            <td style=" vertical-align: text-top; height: 30px;">
                <asp:DropDownList ID="DropDownList2" runat="server" Height="25px">
                </asp:DropDownList>
            </td>
            <td style="vertical-align: text-top; height: 30px;">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="vertical-align: text-top; height: 30px; ">
                起始时间：</td>
            <td style="vertical-align: text-top; height: 30px;">
            
            <input type="text" runat="server" id="TextBox1" 
                    
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" 
                    />  
            </td>
            <td style=" vertical-align: text-top; height: 30px; text-align:center;">
                终止时间：</td>
            <td style="vertical-align: text-top; height: 30px;">
                <input type="text" runat="server" id="TextBox2" 
                    
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" 
                    />
                </td>
            <td style="vertical-align: middle;  height: 30px; text-align: right;">
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查  询" 
                    ValidationGroup="VGroup1" />
            </td>
        </tr>
        </table>
        </div>
        <div>
&nbsp;<asp:Label ID="Label1" runat="server" Text="统计结果："></asp:Label><br />
            <asp:GridView ID="GridView1" runat="server" BackColor="White" 
                BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
                CellSpacing="1" GridLines="None" AllowPaging="True" 
                AutoGenerateColumns="False" onpageindexchanging="GridView1_PageIndexChanging" 
                PageSize="20" Width="100%" EmptyDataText="没有相关数据！">
                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                <Columns>
                    <asp:BoundField DataField="ProductTypeID" HeaderText="测试详细项名称" />
                    <asp:BoundField DataField="total" HeaderText="测试数" />
                    <asp:BoundField DataField="Quantity" HeaderText="不良数" />
                    <asp:BoundField DataField="Quantity1" DataFormatString="{0:F3}" 
                        HeaderText="不良率" />
                </Columns>
                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
            </asp:GridView>
        </div>
        <div style="background-color: Silver">
            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
            <span style="color: red">updating in process...</span>
            <input type="button" value="stop" onclick="AbortPostBack()" />
            </ProgressTemplate>
            </asp:UpdateProgress>
        </div>
        <br /> 
        <br /> 
        <br /> 
        <br /> 
        <br /> 
        </div>
        </ContentTemplate> 
        </asp:UpdatePanel> 
</asp:Content>

